package two_xia.ex9.Demo07;

class Ally implements Observer {
    private String name;

    public Ally(String name) {
        this.name = name;
    }

    public void update(String message) {
        System.out.println(name + "收到通知：" + message);
    }
}